package com.mdxx.component;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by MD-1 on 2017/8/8.
 */
@ConfigurationProperties(prefix = "groundWave.globalParams")
@Component
public class GlobalParams {

    private RedisParams redis;

    public RedisParams getRedis() {
        return redis;
    }

    public void setRedis(RedisParams redis) {
        this.redis = redis;
    }

    public static class RedisParams {
        private String host;
        private int port;
        private String password;

        public String getHost() {
            return host;
        }

        public void setHost(String host) {
            this.host = host;
        }

        public int getPort() {
            return port;
        }

        public void setPort(int port) {
            this.port = port;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }
    }
}